<?php
/* @var $this SiteController */

$this->pageTitle=Yii::app()->name;
?>
<?php if(!empty($schools)) : ?> 
<ul>
    <?php foreach ($schools as $school): ?>
    <li><a href="<?php echo Yii::app()->createUrl('/site/login',array('id' => $school->code));?>"><img src="<?php echo Yii::app()->baseUrl.$school->icon;?>"></a></li>
    <?php endforeach; ?>
</ul>
<?php endif; ?>